package net.whzjkj.gateway.tcpserver.server;

import net.whzjkj.gateway.core.manager.NettyServerManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @description:
 * @author: Mr.Hu
 * @create: 2018-11-06 08:55
 **/
@Component
public class TcpServerRunner implements CommandLineRunner {

    @Autowired
    private NettyServerManager serverManager;
    @Override
    public void run(String... args) throws Exception {
        serverManager.startServer();
    }
}
